<?php

include 'lib/db.abstract.php';

if (isset($_POST['email']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
	$insert = array('email' => $_POST['email'], 'timestamp' => time());
	$id = db_insert('playcnc_subscribe', $insert, true);
	echo ((!empty($id)) ? 'true' : 'false');
}